#!/bin/bash
# 获取当前时间戳
timestamp=`date +%Y%m%d%H%M%S`
echo "当前时间戳: $timestamp"
gnome-terminal --window -- 'bash -c "roscore; exec bash"' \
--tab -- 'bash -c "sleep 5; roslaunch /home/condakiller/ws/swarm_path_planning/src/gazebo_swarm/launch/sitl_indoor_1uav.launch; exec bash"' \
--tab -- 'bash -c "sleep 6; roslaunch prometheus_uav_control uav_control_main_outdoor.launch; exec bash"' \
--tab -- 'bash -c "sleep 6; rosservice call /gazebo_2D_map_plugin/generate_map exec bash"' \
--tab -- "bash -c "sleep 6; rosrun map_server map_saver -f /home/condakiller/ws/swarm_path_planning/src/gazebo_swarm/maps/$timestamp /map:=/map2d; exec bash"" \